import type { RNTesterModuleInfo } from '../types/RNTesterTypes';

const Components: Array<RNTesterModuleInfo> = [
  {
    key: 'native-camera',
    category: 'UI',
    module: require('../examples/react-native-camera/test/App').default,
  },
  {
    key: 'ReactNativeGiftedCharts',
    category: 'UI',
    module: require('../examples/react-native-gifted-charts/App'),
  },
  {
    key: 'ReactNativeSvgCharts',
    category: 'UI',
    module: require('../examples/react-native-svg-charts/App'),
  },
  {
    key: 'GalioFramework',
    category: 'Basic',
    module: require('../examples/galio-framework/APP'),
  },
  {
    key: 'ReactNativeTypography',
    category: 'UI',
    module: require('../examples/react-native-typography/index'),
  },
  {
    key: 'ReactNativeBarcodeBuilder',
    category: 'UI',
    module: require('../examples/react-native-barcode-builder/BarcodeBuilderExample'),
  }
];

const APIs: Array<RNTesterModuleInfo> = [
  {
    key: 'BorderExample',
    category: 'UI',
    module: require('../examples/Border/BorderExample'),
  },
];

const Modules: any = {};

APIs.concat(Components).forEach(Example => {
  Modules[Example.key] = Example.module;
});

const RNTesterList = {
  APIs,
  Components,
  Modules,
};

export default RNTesterList;
